//
//  WalletViewController.m
//  LiquorChain
//
//  Created by apple on 2019/1/7.
//  Copyright © 2019年 王冬. All rights reserved.
//

#import "WalletViewController.h"

@interface WalletViewController ()

@end

@implementation WalletViewController

- (void)viewDidLoad {
    [super viewDidLoad];
      //wr_setDefaultNavBarTintColor
    //[self wr_setNavBarBackgroundAlpha:0];
    self.customNavBar.title = @"我的钱包";
    [self.customNavBar wr_setBackgroundAlpha:0];
    self.customNavBar.backgroundColor =[UIColor clearColor];
    self.view.backgroundColor =[UIColor blackColor];
    UIImageView *headImageView =[[UIImageView alloc]init];
    [self.view addSubview:headImageView];
    headImageView.backgroundColor =[UIColor redColor];
    [headImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(kNavBarHeight +100);
        make.centerX.mas_equalTo(self.view.mas_centerX);
        make.width.height.mas_equalTo(60);
    }];
    UILabel *titleLabel = [[UILabel alloc]init];
    [self.view addSubview:titleLabel];
    titleLabel.text =@"创建数字钱包";
    titleLabel.textAlignment = NSTextAlignmentCenter;
    titleLabel.textColor =[UIColor whiteColor];
    titleLabel.font =[UIFont systemFontOfSize:25];
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        //make.centerX.mas_equalTo(self.view.mas_centerX);
        make.top.mas_equalTo(headImageView.mas_bottom).with.offset(30);
        make.left.mas_equalTo(50);
        make.right.mas_equalTo(-50);
        make.height.mas_equalTo(30);
    }];
    UILabel *contentLabel =[[UILabel alloc]init];
    [self.view addSubview:contentLabel];
    contentLabel.numberOfLines = 0;
    contentLabel.font =[UIFont systemFontOfSize:13];
    contentLabel.textColor =[UIColor whiteColor];
    [contentLabel setValue:@(20) forKey:@"lineSpacing"];
    contentLabel.text = @"首次创建需支付宝授权并绑定支付宝的真实姓名和账号，所绑定的支付宝信息仅用于酒链世界圣酒交易中买卖双方进行线下打收款、信息校验、数字资产安全等固有账户，且不可更改，请绑定时务必确保所绑定支付宝信息的真实性，以免给您造成和不可换回损失。创建后，将一次性支付1元资源使用费。";
    [contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(titleLabel.mas_bottom).with.offset(20);
        make.left.mas_equalTo(50);
        make.right.mas_equalTo(-50);
        make.height.mas_equalTo(145);
    }];
    UIButton *commitBtn =[UIButton buttonWithType:UIButtonTypeCustom];
    [self.view addSubview:commitBtn];
    commitBtn.layer.cornerRadius = 20;
    commitBtn.backgroundColor =[UIColor whiteColor];
    [commitBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(contentLabel.mas_bottom).with.offset(70);
        make.left.mas_equalTo(40);
        make.right.mas_equalTo(-40);
        make.height.mas_equalTo(40);
    }];

    
    
    // Do any additional setup after loading the view.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
